package com.xszx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author 信思智学
 * @Date 2024/8/26 17:18
 * @Description
 */
@Controller
public class MyController02 {

    @RequestMapping("/add")
    public ModelAndView add(){
        System.out.println("自定义登录方法....添加add");
        ModelAndView mv = new ModelAndView();
        mv.setViewName("index.jsp");
        return mv;
    }

    @RequestMapping("/login")
    public String login(){
        System.out.println("自定义登录方法");
        return "index.jsp";
    }

    @RequestMapping("/get")
    public String get(HttpServletRequest request, HttpServletResponse response){
        System.out.println("自定义登录方法");
        return "index";
    }

}
